﻿using Newtonsoft.Json;

namespace FinalPointSet.Model.Model
{
    public class RunnableScript
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; } = 0;
        /// <summary>
        /// 参数名称
        /// </summary>
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; } = "";
        /// <summary>
        /// 脚本
        /// </summary>
        public string Script { get; set; } = "";
        /// <summary>
        /// 参数
        /// </summary>
        [JsonIgnore]
        public string Param { get; set; } = "";
        public override string? ToString()
        {
            return $"ID={ID}, Name={Name}, Description={Description}, Script={Script}, Param={Param}";
        }
    }
}
